package com.desksoft.dao;

import java.util.List;

import javax.inject.Inject;

import com.desksoft.common.BaseDao;
import com.desksoft.entity.Article;
import com.desksoft.entity.mapper.ArticleMapper;
import com.desksoft.vo.ArticleVo;

/**
 * 文章操作dao
 * @author forever
 *
 */
public class ArticleDao extends BaseDao {

	@Inject
	ArticleMapper articleMapper;
	
	public void insertArticle(Article articleRecord){
		articleMapper.insertArticle(articleRecord);
	}

	/**
	 * 通过条件查询文章
	 * @param vo
	 * @return
	 */
	public List<Article> queryArticleByCondition(ArticleVo vo) {
		return articleMapper.queryArticleByCondition(vo);
	}
	
}
